<script>
function check(obj)
{
var a=/^[0-9]*(\.[0-9]{1,2})?$/;
if(!a.test(obj.value))
{
alert("金额格式不正确");
obj.value = '';
return false;
}

}
</script>
<center><b>{% if $is_show ==1 %}内容查看{%else%}{%$act_title%}表单{%/if%}</b></center>
<table border=1>
<form action="index.php?c=auto_service&m={%$act%}&post=1" method=post name=frm>
		<tr>
		<td>服务类型</td>
		<td>
		<select name="service_type">
		{%html_options selected=$service_type options=$service_arr%}
		</select>
		</td>
	</tr>
		<tr>
		<td>收费金额</td>
		<td><input type=text name="service_price" size=30 value='{%$service_price%}' {% if $is_show ==1 %} readonly {%/if%} onchange="check(this)"></td>
	</tr>
		<tr>
		<td>罚款金额</td>
		<td>
		<input type="hidden" name="auto_id" value="{%$smarty.get.auto_id%}">
		<input type=text name="Fine_price" size=30 value='{%$Fine_price%}' {% if $is_show ==1 %} readonly {%/if%} onchange="check(this)"></td>
	</tr>
		
		<tr>
		<td colspan=2 align=center>
		<input type=hidden name='sevice_id' id='sevice_id' value='{%$sevice_id%}'>
		{% if $is_show ==1 %}
		<input type="button" value="返回" onclick="javascript:history.go(-1);">
		{% else %}
		<input type=submit value="提交">&nbsp;&nbsp;
		<input type=reset value="重置">
		{% /if %}
		</td>
	</tr>
</form>
</table>